package com.example.cash.craft.service;

import com.example.cash.craft.pojo.core.CurrentPrincipal;
import com.example.cash.craft.pojo.param.OrderAddNewParam;
import com.example.cash.craft.pojo.vo.OrderFullInfoVO;
import com.example.cash.craft.pojo.vo.OrderSimpleInfoVO;
import com.example.cash.craft.pojo.vo.PageData;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface IOrderService {

    void addNew(OrderAddNewParam param, CurrentPrincipal currentPrincipal);

    OrderFullInfoVO selectById(Long id, CurrentPrincipal currentPrincipal);

    PageData<OrderSimpleInfoVO> listByUser(Integer page, CurrentPrincipal currentPrincipal);

}
